# coding: utf-8
import os
from web.contrib.template import render_mako

__all__ = [
    'sys_path',
    'session_store_path', 'session_expires',
    'render',
]

# system configurations
sys_path = os.getcwd().replace('\\', '/')

# set session store path
# session_store_path = os.path.join(sys_path, 'sessions').replace('\\', '/')
session_store_path = 'F:/session'
session_cookie_name = 'hyacinth'
session_expires = 24 * 60

# initialize Mako Templates
render = render_mako(
    directories = [os.path.join(sys_path, 'templates').replace('\\', '/'),],
    input_encoding = 'utf-8',
    output_encoding = 'utf-8',
)

if __name__ == '__main__':
    print session_store_path